/*
 * @Author: lihaonan
 * @Date: 2024-06-24 15:05:25
 * @LastEditors: lihaonan
 * @LastEditTime: 2024-07-31 22:34:37
 * @Description: 个人
 */
const BASE_URL_EXCEPTION = "/app";
import http from "@/utils/http";

// 志愿者教练、提交审批
export const addRoleApply = (data: object) => {
  return http.post(`${BASE_URL_EXCEPTION}/role-apply/add`, data);
};
// 切换身份
export const switchIdentities = (data: object) => {
  return http.get(`/wechat/auth/change`, data);
};
// 生成委托码
export const getEntrustCode = () => {
  return http.get(`${BASE_URL_EXCEPTION}/entrust/code`);
};
// 查看关注数量
export const getFollowCount = (nid: string) => {
  return http.get(`${BASE_URL_EXCEPTION}/follow-rel/count?nid=` + nid);
};
// 查看我关注的人
export const getGogTurn = (data: {}) => {
  return http.get(`${BASE_URL_EXCEPTION}/follow-rel/dog/turn`, data);
};
// 查看互相关注
export const getLoveTurn = (data: {}) => {
  return http.get(`${BASE_URL_EXCEPTION}/follow-rel/love/turn`, data);
};
